package com.fanqiechaodan.interpreter;

/**
 * @author fanqiechaodan
 * @Classname NumberExpression
 * @Description 终结符表达式
 */
public class NumberExpression implements Expression{

    private int num;

    public NumberExpression(int num) {
        this.num = num;
    }

    /**
     * 解释表达式
     *
     * @return
     */
    @Override
    public int interpreter() {
        return num;
    }
}
